package com.exam.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.exam.domain.enums.ExamStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel(description = "考试名")
public class Exam {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("编号")
    private Integer id;

    @ApiModelProperty("考试名")
    private String name;

    @TableField("start_time")
    @ApiModelProperty("开始时间")
    private Date startTime;

    @TableField("end_time")
    @ApiModelProperty("结束时间")
    private Date endTime;

    @ApiModelProperty("考试状态")
    private String status;

    @TableField("create_time")
    @ApiModelProperty("考试创建时间")
    private Date createTime;

    @TableField("lesson_id")
    @ApiModelProperty("考试所属课程id")
    private Integer lessonId;

    @TableField("subject_id")
    @ApiModelProperty("考试所属科目id")
    private Integer subjectId;

    @TableField(exist = false)
    private Subject subject;

    @TableField(exist = false)
    private Lesson lesson;

    @TableField(exist = false)
    private List<Student> studentList;
}
